layui.config({
    base: 'assets/layuiadmin/' //静态资源所在路径
}).extend({
    index: 'lib/index' //主入口模块
}).use(['index', 'tree', 'form'], function(){

    var $ = layui.$,
        form = layui.form;

    form.verify();
});